package com.yzd.learnjava.containers;

import java.util.LinkedHashMap;

import com.yzd.learnjava.util.CountingMapData;
import com.yzd.learnjava.util.Print;

public class LinkedHashMapDemo {
	public static void main(String[] args) {
		LinkedHashMap<Integer, String> linkedHashMap = new LinkedHashMap<Integer, String>(new CountingMapData(9));
		Print.print(linkedHashMap);
		
		linkedHashMap = new LinkedHashMap<Integer, String>(16, 0.75f, true);
		linkedHashMap.putAll(new CountingMapData(9));
		Print.print(linkedHashMap);
		
		for(int i = 0 ; i < 6; i++) {
			linkedHashMap.get(i);
		}
		Print.print(linkedHashMap);
		
		linkedHashMap.get(0);
		Print.print(linkedHashMap);
	}
}
